widget: Queue an allocate on hide
authorBenjamin Otte <otte@redhat.com>
Tue, 3 Nov 2015 17:53:45 +0000 (18:53 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 3 Nov 2015 17:57:14 +0000 (18:57 +0100)
commit1f01b8d52ae869dac49b75220db8f739b5971e03
treef9a574e7a6432bd3ab634657a859f2573482bdcf
parent09f7c8511bf9dd6d597411d922b11c0a1c429ed9
widget: Queue an allocate on hide

This makes sure that hidden widgets always have priv->alloc_needed set
on them.

The constructor sets that flag, so we want to have it back when we
revert to this state.

This fixes GtkWindow skipping a size_allocate() when reshowing a
previously hidden window and thereby not updating its allocation and
clip. And that in turn would lead to draws not happening and us beig
left with a black window.
gtk/gtkwidget.c